package com.hdax.dm.api.item;

import com.hdax.dm.entity.item.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "商品模块")
public interface ItemTypeControllerApi {

    @PostMapping(path = "/item/type/level")
    @ApiOperation(value = "商品分类查询",notes = "一级商品分类查询")
    List<ItemType> types(@RequestParam("parent")Long parent);

    @PostMapping(path = "/item/index/lineNav")
    @ApiOperation(value = "商品分类查询",notes = "全部商品分类查询")
    List<ItemType> lineNav();

    @PostMapping(path = "/item/index/floor")
    @ApiOperation(value = "商品分类查询",notes = "商品楼层分类查询")
    List<ItemType> floor();

}
